package com.adingxiong.pm.server.impl;

import com.adingxiong.pm.entity.Pmuser;
import com.adingxiong.pm.mapper.PmuserMapper;
import com.adingxiong.pm.server.IPmuserService;
import com.adingxiong.pm.entity.vo.UserRoleVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author xiongc
 * @since 2020-02-15
 */
@Service
@Transactional
public class PmuserServiceImpl extends ServiceImpl<PmuserMapper, Pmuser> implements IPmuserService {

    @Override
    public Page<UserRoleVo> getUserDeatilInfo(Page<UserRoleVo> page) {
        return page.setRecords(this.baseMapper.getUserDeatilInfo(page));
    }

    @Override
    public Page<UserRoleVo> findBykeywords(Page<UserRoleVo> page ,String keywords) {
        return page.setRecords(this.baseMapper.findBykeywords(page,keywords));
    }
}
